package net.odtel.mailadmin.dao;

import java.util.List;

import net.odtel.mailadmin.model.EmailAccount;

public interface EmailAccountDAO {
	public void add (EmailAccount emailAccount);
	public void update (EmailAccount emailAccount);
	public void remove (EmailAccount emailAccount);
	public void remove(Long emailAccountId);
	public EmailAccount findByLogin (String login);
	public EmailAccount findById(Long Id);
	public List<EmailAccount> findRange(int[] range);
	public List<EmailAccount> findAll ();
	public boolean ifExist(String login);
	public boolean inDomain(String domain);
	public int count();
	
}
